package com.zhuoshi.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zhuoshi.bean.OpeningPay;
import com.zhuoshi.serviceImpl.OpeningPayServiceImpl;

@Controller
public class OpeningPayController {
	
	
	/**
	 * example
	 */
	@Autowired
	private OpeningPayServiceImpl openingPayServiceImpl;
	
	
	@RequestMapping("/test")
	public String Test(String id,Model model)
	{
		OpeningPay pay = openingPayServiceImpl.selectByPrimaryKey(id);
		model.addAttribute("pay",pay);
		System.out.println(pay.getUpdateTime());
		return "index";
	}

}
